import { Meta } from '@storybook/blocks';

import * as RadioListTileStories from '../stories/RadioListTile.stories';

<Meta of={RadioListTileStories} />

# RadioListTile

A ListTile with a Radio. In other words, a radio button with a label.

## Example

```dart liveslice=RadioListTile
enum SingingCharacter { lafayette, jefferson }

// ...

SingingCharacter _character = SingingCharacter.lafayette;

@override
Widget build(BuildContext context) {
  return Column(
    children: <Widget>[
      RadioListTile<SingingCharacter>(
        title: const Text('Lafayette'),
        value: SingingCharacter.lafayette,
        groupValue: _character,
        onChanged: (SingingCharacter value) { setState(() { _character = value; }); },
      ),
      RadioListTile<SingingCharacter>(
        title: const Text('Thomas Jefferson'),
        value: SingingCharacter.jefferson,
        groupValue: _character,
        onChanged: (SingingCharacter value) { setState(() { _character = value; }); },
      ),
    ],
  );
}
```

## Related Links

- https://api.flutter.dev/flutter/material/RadioListTile-class.html
